<?php
namespace app\index\controller;
use think\Request;

class Index
{
    public function index()
    {
        return view();
    }

    public function prose(Request $request)
    {
        # 获取请求类型
        # dump($request->method());

        # 获取请求参数
        # dump($request->get());
        # dump($request->post());


        # 默认模板地址
        # app/index/view/index/index.html
        # return view();

        # app/index/view/index/uplode.html
        # return view('uplode');

        # 携带参数传值
        # return view('index', [
        #     'name' => 'xiaoyi',
        #     'age' => '18',
        # ]);
        # dump($request->param());
        return view();

    }


}

